package news.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Data
public class Comment {
    private Integer id;
    private String commentContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date commentTime;
    private Integer status;
    private Integer adminId;
    private Admin admin;
    private String title;
    private String nickName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;
    private Integer pageNum;
    private Integer pageSize;
    private Integer newsid;
    private Integer userId;
    private User user;
}
